package edu.xaut.bookingsys.entity;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;
import lombok.ToString;
@Getter
@ToString
public enum EnumIndexClass {

    OneTwo(1, "8:00-10:00"),
    ThreeFour(2, "10:00-12:00"),
    FiveSix(3, "14:00-16:00"),
    SevenEight(4, "16:00-18:00"),
    NineTen(5, "19:00-21:30");
    @EnumValue
    final private int id;
    @JsonValue
    final private String desc;

    EnumIndexClass(int id, String n) {
        this.id = id;
        desc = n;
    }
}